#ifndef __CAN_H__
#define __CAN_H__
#include "stdint.h"
#include "stm32f10x_can.h"

typedef enum
{
	_1Mbps = 1000u,
	_500Kbps = 500u,
	_250Kbps = 150u,
	_125Kbps = 125u,
}E_CAN_BADU_LIST;

void CAN_Configuration(uint16_t id,uint16_t badu);
void CAN_TX_PACKET_SHORT(uint16_t id,int16_t data1,int16_t data2,int16_t data3,int16_t data4);
void CAN_TX_PACKET_BYTE(uint16_t id,uint8_t data[8]);

#endif 
